package org.fone.utils.task;

import org.fone.utils.task.data.TaskType;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 合并
 */
public class Merger extends Task{
    List<Integer> source_ids;
    Map<String,String> match_relationship;
    List<String[]> out_fields;
    boolean union;

    public boolean isUnion() {
        return union;
    }

    public void setUnion(boolean union) {
        this.union = union;
    }

    public Merger(TaskType type, int task_id) {
        super(type, task_id);
    }

    public void setMatch_relationship(Map<String, String> match_relationship) {
        this.match_relationship = match_relationship;
    }
    public void setOut_fields(List<String[]> out_fields) {
        this.out_fields = out_fields;
    }

    public void setSource_ids(List<Integer> source_ids) {
        this.source_ids = source_ids;
    }

    @Override
    public String toString() {
        return "Merger{" +
                "source_ids=" + source_ids +
                ", match_relationship=" + match_relationship +
                ", out_fields=" + out_fields +
                ", type=" + type +
                ", task_id=" + task_id +
                '}';
    }

    public List<Integer> getSource_ids() {
        return source_ids;
    }

    public Map<String, String> getMatch_relationship() {
        return match_relationship;
    }

    public List<String[]> getOut_fields() {
        return out_fields;
    }
}
